import request from '/@/utils/request';

//剧本管理模块的api

//学生
export function scriptApi() {
	return {
		//获取所有发布的作业
		getHomeWork: (params?: object) => {
			return request({
				url: '/homework/getHomeWork',
				method: 'get',
				params,
			});
		},
		//获取当前作业的状态
		getState: (data?: object) => {
			return request({
				url: '/homework/getState',
				method: 'post',
				data,
			});
		},

		//学生处：根据作业id和学生id去获取对应学生的作业
		getAllScrip: (data?: object) => {
			return request({
				url: '/modelfiles/select',
				method: 'post',
				data,
			});
		},
      //删除上传的作业
			deleteUrl: (data?: object) => {
			return request({
				url: '/modelfiles/delete',
				method: 'delete',
				data,
			});
		},


			//审核处：根据作业id去获取所有学生的本次提交的作业
			getScrip: (data?: object) => {
				return request({
					url: '/modelfiles/selectAll',
					method: 'post',
					data,
				});
			},

          //审核员对学生作业状态审核
			updatesctate: (data?: object) => {
				return request({
					url: '/modelfiles/updateModelFiles',
					method: 'post',
					data,
				});
			},
	
	};
}

// import request from '/@/utils/request';

// //剧本管理模块的api

// export function scriptApi() {
// 	return {
// 		getHomeWork: (params?: object) => {
// 			return request({
// 				url: '/homework/getHomeWork',
// 				method: 'get',
// 				params,
// 			});
// 		},
		

// 		getAllScrip: (params?: object) => {
// 			return request({
// 				url: '/modelfiles/select',
// 				method: 'get',
// 				params,
// 			});
// 		},


// 			deleteUrl: (data?: object) => {
// 			return request({
// 				url: '/script/deleteUrl',
// 				method: 'delete',
// 				data,
// 			});
// 		},
	
// 	};
// }